;
var grade_set_ops = {
    init:function(){
        this.eventBind();
    },
    eventBind:function(){
        $(".wrap_grade_set .save").click(function(){
            var btn_target = $(this);
            if( btn_target.hasClass("disabled") ){
                common_ops.alert("正在处理!!请不要重复提交~~");
                return;
            }

            var id_target = $(".wrap_grade_set ");
            var id = id_target.val();

            var user_name_target = $(".wrap_grade_set ");
            var user_name = user_name_target.val();

            var book_name_target = $(".wrap_grade_set ");
            var book_name = book_name_target.val();

            var grade_target = $(".wrap_account_set ");
            var grade = grade_target.val();

            var status_target = $(".wrap_account_set ");
            var status = status_pwd_target.val();



            btn_target.addClass("disabled");

            var data = {
                user_name: user_name,
                book_name: book_name,
                grade: grade,
                status:status,

                id:$(".wrap_account_set ").val()
            };

            $.ajax({
//                url:common_ops.buildUrl( "/account/set" ),
                type:'POST',
                data:data,
                dataType:'json',
                success:function( res ){
                    btn_target.removeClass("disabled");
                    var callback = null;
                    if( res.code == 200 ){
                        callback = function(){
//                            window.location.href = common_ops.buildUrl("/account/index");
                        }
                    }
                    common_ops.alert( res.msg,callback );
                }
            });


        });
    }
};

$(document).ready( function(){
    grade_set_ops.init();
} );